﻿<script>
    var baseUrl = "@(Logic.Constants.CurrentUrl)";
    var isGmail = @Logic.Constants.IsGmail.ToString().ToLower();
    @if(!Logic.Constants.IsGmail)
    {
        <text>
            var isWide =  true;
        </text>
    }
    else
    {
        <text>
            var GetInfo =  null;
        </text>
    }
    var durationUnits = @Html.Raw(Logic.Extentions.ToJson(Enum.GetNames(typeof(Logic.ClarizenSvc.DurationUnit))));
    var currencyUnits = @Html.Raw(Logic.Extentions.ToJson(Enum.GetNames(typeof(Logic.ClarizenSvc.Currency))));

    var user = @Html.Raw((Logic.Extentions.ToJson(BLL.Users.GetClarizenUser())));

    
    // refresh session every 5 minutes
    window.setInterval(function()
    {
        remoteRequest({
            url: "@(Logic.Constants.CurrentUrl)/login/KeepAlive",
            contentType: "JSON",
            type: "POST"
        });
    }, 1000 * 60 * 5);
</script>